<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浮动输入框预览</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .header {
            text-align: center;
            color: white;
            margin-bottom: 40px;
        }
        
        .header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }
        
        .header p {
            font-size: 1.1rem;
            opacity: 0.9;
        }
        
        .content-section {
            background: white;
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .content-section h2 {
            color: #333;
            margin-bottom: 20px;
            font-size: 1.8rem;
        }
        
        .content-section p {
            color: #666;
            line-height: 1.6;
            margin-bottom: 15px;
            font-size: 1.1rem;
        }
        
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        
        .feature-card {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            border-left: 4px solid #667eea;
        }
        
        .feature-card h3 {
            color: #333;
            margin-bottom: 10px;
        }
        
        .feature-card p {
            color: #666;
            font-size: 0.95rem;
        }
        
        /* 浮动输入框样式 */
        .floating-input-container {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 800px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            display: flex;
            flex-direction: column;
            align-items: center;
            z-index: 1000;
            padding: 15px 25px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .input-wrapper {
            display: flex;
            gap: 15px;
            width: 100%;
            max-width: 600px;
        }
        
        .floating-input-field {
            flex: 1;
            padding: 15px 20px;
            border: 2px solid #e1e5e9;
            border-radius: 12px;
            font-size: 16px;
            transition: all 0.3s ease;
            outline: none;
        }
        
        .floating-input-field:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
            transform: translateY(-2px);
        }
        
        .floating-submit-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 15px 25px;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
        }
        
        .floating-submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        }
        
        .floating-submit-btn:active {
            transform: translateY(0);
        }
        
        .floating-actions {
            display: flex;
            gap: 15px;
            margin-top: 15px;
            width: 100%;
            justify-content: center;
        }
        
        .floating-action-btn {
            background: transparent;
            color: #667eea;
            border: 2px solid #667eea;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }
        
        .floating-action-btn:hover {
            background: #667eea;
            color: white;
            transform: translateY(-2px);
        }
        
        .floating-action-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .floating-input-container {
                width: 95%;
                padding: 12px 20px;
            }
            
            .input-wrapper {
                flex-direction: column;
                align-items: stretch;
            }
            
            .floating-input-field, .floating-submit-btn {
                width: 100%;
            }
            
            .floating-actions {
                flex-direction: column;
                align-items: center;
            }
            
            .floating-action-btn {
                width: 100%;
                text-align: center;
            }
            
            .header h1 {
                font-size: 2rem;
            }
            
            .content-section {
                padding: 20px;
            }
        }
        
        /* 滚动条样式 */
        ::-webkit-scrollbar {
            width: 8px;
        }
        
        ::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }
        
        ::-webkit-scrollbar-thumb {
            background: #667eea;
            border-radius: 4px;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: #5a6fd8;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>🎯 智能穿搭推荐系统</h1>
            <p>基于AI的个性化穿搭建议，让每个人都能找到属于自己的风格</p>
        </div>
        
        <div class="content-section">
            <h2>✨ 系统特色</h2>
            <div class="feature-grid">
                <div class="feature-card">
                    <h3>🤖 AI智能推荐</h3>
                    <p>基于用户年龄、身高、体重、爱好等信息，生成个性化穿搭方案</p>
                </div>
                <div class="feature-card">
                    <h3>💬 多轮对话</h3>
                    <p>支持连续对话，无需重复输入用户名，享受流畅的交互体验</p>
                </div>
                <div class="feature-card">
                    <h3>🎨 场景适配</h3>
                    <p>针对不同场合提供专业建议，职场、约会、运动等场景全覆盖</p>
                </div>
                <div class="feature-card">
                    <h3>📱 响应式设计</h3>
                    <p>支持各种设备，桌面端和移动端都有完美的使用体验</p>
                </div>
            </div>
        </div>
        
        <div class="content-section">
            <h2>🚀 使用方法</h2>
            <p>现在系统支持完全自由的输入方式，您可以：</p>
            <ul style="color: #666; line-height: 1.6; margin-left: 20px; font-size: 1.1rem;">
                <li>先介绍自己：<code style="background: #f0f0f0; padding: 2px 6px; border-radius: 4px;">我是小明</code></li>
                <li>直接指定用户：<code style="background: #f0f0f0; padding: 2px 6px; border-radius: 4px;">为小红推荐约会穿搭</code></li>
                <li>自然语言表达：<code style="background: #f0f0f0; padding: 2px 6px; border-radius: 4px;">推荐职场穿搭</code></li>
            </ul>
        </div>
        
        <div class="content-section">
            <h2>💡 技术架构</h2>
            <p>系统采用现代化的技术栈，确保稳定性和可扩展性：</p>
            <ul style="color: #666; line-height: 1.6; margin-left: 20px; font-size: 1.1rem;">
                <li><strong>前端：</strong>Vue 3 + Element Plus + Vite</li>
                <li><strong>后端：</strong>Django + Django REST Framework</li>
                <li><strong>AI：</strong>通义千问大语言模型</li>
                <li><strong>数据库：</strong>MySQL + Redis</li>
            </ul>
        </div>
        
        <!-- 添加更多内容来测试滚动 -->
        <div class="content-section">
            <h2>📚 更多功能</h2>
            <p>系统还包含以下高级功能：</p>
            <ul style="color: #666; line-height: 1.6; margin-left: 20px; font-size: 1.1rem;">
                <li>用户管理：创建和管理用户资料</li>
                <li>历史记录：保存对话历史，支持查询和清空</li>
                <li>智能识别：自动识别用户名和意图</li>
                <li>流式响应：实时显示AI生成内容</li>
            </ul>
        </div>
        
        <div class="content-section">
            <h2>🔧 开发信息</h2>
            <p>这是一个完整的全栈项目，包含：</p>
            <ul style="color: #666; line-height: 1.6; margin-left: 20px; font-size: 1.1rem;">
                <li>完整的API文档和测试工具</li>
                <li>数据库初始化和配置脚本</li>
                <li>系统健康检查和监控</li>
                <li>详细的部署和使用说明</li>
            </ul>
        </div>
    </div>
    
    <!-- 浮动输入框 -->
    <div class="floating-input-container">
        <div class="input-wrapper">
            <input 
                type="text" 
                class="floating-input-field" 
                placeholder="请输入您的穿搭需求，例如：我想了解职场穿搭、推荐运动装等"
            >
            <button class="floating-submit-btn">发送</button>
        </div>
        
        <div class="floating-actions">
            <button class="floating-action-btn">🗑️ 清空历史</button>
            <button class="floating-action-btn">🔄 切换用户</button>
        </div>
    </div>
    
    <script>
        // 添加一些交互效果
        document.querySelector('.floating-submit-btn').addEventListener('click', function() {
            const input = document.querySelector('.floating-input-field');
            if (input.value.trim()) {
                alert('模拟发送：' + input.value);
                input.value = '';
            } else {
                alert('请输入内容');
            }
        });
        
        // 回车键发送
        document.querySelector('.floating-input-field').addEventListener('keypress', function(e) {
            if (e.key === 'Enter') {
                document.querySelector('.floating-submit-btn').click();
            }
        });
        
        // 添加滚动效果
        window.addEventListener('scroll', function() {
            const inputContainer = document.querySelector('.floating-input-container');
            if (window.scrollY > 100) {
                inputContainer.style.transform = 'translateX(-50%) translateY(0)';
            } else {
                inputContainer.style.transform = 'translateX(-50%) translateY(0)';
            }
        });
        
        console.log('🚀 浮动输入框预览页面已加载');
        console.log('💡 滚动页面查看效果，输入框始终浮动在底部');
    </script>
</body>
</html>
